!function(){function t(t,e){var i;try{i=t.getSelection().getRanges()[0]}catch(t){return null}return i.shrink(CKEDITOR.SHRINK_TEXT),t.elementPath(i.getCommonAncestor()).contains(e,1)}function e(e,n){var s=e.lang.liststyle;if("bulletedListStyle"==n)return{title:s.bulletedTitle,minWidth:300,minHeight:50,getModel:i(e,"ul"),contents:[{id:"info",accessKey:"I",elements:[{type:"select",label:s.type,id:"type",align:"center",style:"width:150px",items:[[s.notset,""],[s.circle,"circle"],[s.disc,"disc"],[s.square,"square"]],setup:function(t){t=t.getStyle("list-style-type")||r[t.getAttribute("type")]||t.getAttribute("type")||"",this.setValue(t)},commit:function(t){var e=this.getValue();e?t.setStyle("list-style-type",e):t.removeStyle("list-style-type")}}]}],onShow:function(){var e=this.getParentEditor();(e=t(e,"ul"))&&this.setupContent(e)},onOk:function(){var e=this.getParentEditor();(e=t(e,"ul"))&&this.commitContent(e)}};if("numberedListStyle"==n){var a=[[s.notset,""],[s.lowerRoman,"lower-roman"],[s.upperRoman,"upper-roman"],[s.lowerAlpha,"lower-alpha"],[s.upperAlpha,"upper-alpha"],[s.decimal,"decimal"]];return{title:s.numberedTitle,minWidth:300,minHeight:50,getModel:i(e,"ol"),contents:[{id:"info",accessKey:"I",elements:[{type:"hbox",widths:["25%","75%"],children:[{label:s.start,type:"text",id:"start",validate:CKEDITOR.dialog.validate.integer(s.validateStartNumber),setup:function(t){t=t.getFirst(l).getAttribute("value")||t.getAttribute("start")||1,this.setValue(t)},commit:function(t){var e=t.getFirst(l),i=e.getAttribute("value")||t.getAttribute("start")||1;t.getFirst(l).removeAttribute("value");var r=parseInt(this.getValue(),10);for(isNaN(r)?t.removeAttribute("start"):t.setAttribute("start",r),t=e,e=i,r=isNaN(r)?1:r;(t=t.getNext(l))&&e++;)t.getAttribute("value")==e&&t.setAttribute("value",r+e-i)}},{type:"select",label:s.type,id:"type",style:"width: 100%;",items:a,setup:function(t){t=t.getStyle("list-style-type")||r[t.getAttribute("type")]||t.getAttribute("type")||"",this.setValue(t)},commit:function(t){var e=this.getValue();e?t.setStyle("list-style-type",e):t.removeStyle("list-style-type")}}]}]}],onShow:function(){var e=this.getParentEditor();(e=t(e,"ol"))&&this.setupContent(e)},onOk:function(){var e=this.getParentEditor();(e=t(e,"ol"))&&this.commitContent(e)}}}}function i(e,i){return function(){return t(e,i)||null}}var l=function(t){return t.type==CKEDITOR.NODE_ELEMENT&&t.is("li")},r={a:"lower-alpha",A:"upper-alpha",i:"lower-roman",I:"upper-roman",1:"decimal",disc:"disc",circle:"circle",square:"square"};CKEDITOR.dialog.add("numberedListStyle",(function(t){return e(t,"numberedListStyle")})),CKEDITOR.dialog.add("bulletedListStyle",(function(t){return e(t,"bulletedListStyle")}))}();